package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.zhentao.model.common.business.pojo.BusinessGoodType;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.BusinessGoodTypeService;
import com.zhentao.mapper.BusinessGoodTypeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 贾媛婕
* @description 针对表【business_good_type】的数据库操作Service实现
* @createDate 2024-09-15 11:02:24
*/
@Service
public class BusinessGoodTypeServiceImpl extends ServiceImpl<BusinessGoodTypeMapper, BusinessGoodType>
    implements BusinessGoodTypeService{
    @Resource
    BusinessGoodTypeMapper businessGoodTypeMapper;

    @Override
    public ResponseResult goodListAll() {

        List<BusinessGoodType> list = this.list();
        return ResponseResult.okResult(list);
    }

//    @Override
//    public ResponseResult goodTypeById(Integer gtId) {
//        BusinessGoodType businessGoodType = businessGoodTypeMapper.selectById(gtId);
//        return ResponseResult.okResult(businessGoodType);
//    }
}




